package com.lovo.shirodemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lovo.shirodemo.model.FunctionInfoDO;
import com.lovo.shirodemo.model.dto.FunctionInfoDTO;
import com.lovo.shirodemo.model.dto.RoleDTO;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bdk
 * @since 2020-11-26
 */
public interface FunctionInfoService extends IService<FunctionInfoDO> {
    void saveFunction(FunctionInfoDTO functionInfoDTO);
    List<FunctionInfoDTO> findByRoleIds(List<RoleDTO> roleList);
    Map<String, String> loadFilterChainDefinitionMap();
    void updatePermission(ShiroFilterFactoryBean shiroFilterFactoryBean) throws Exception;
}
